package com.example.cloudcashierpos.bean;


import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class Goods {
    @Id(autoincrement = true)
    private Long id; // 主键（必须为 Long 类型）

    @Property(nameInDb = "goods_name")
    private String goodsName;


    public Goods(String goodsName) {
        this.goodsName = goodsName;
    }


    public Goods() {
    }


    @Generated(hash = 491522142)
    public Goods(Long id, String goodsName) {
        this.id = id;
        this.goodsName = goodsName;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGoodsName() {
        return this.goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

}
